which party ended slavery